package com.kgdev.cweb.entities.i8n;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.Lob;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.kgdev.cweb.entities.ManagedEntity;
import com.kgdev.cweb.entities.i8n.pkeys.I8nTextPK;

/**
 * The persistent class for the i8n_text database table.
 * 
 */
@Entity
@NamedQueries(value = {
		@NamedQuery(name = "I8nText.findAll", query = "select c from I8nText c"),
		@NamedQuery(name = "I8nText.findByLanguage", query = "select c from I8nText c where c.id.lanCode = :language") })
@Table(name = "i8n_text")
public class I8nText implements Serializable, ManagedEntity {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private I8nTextPK id;

	@Lob()
	@Column(name = "text_value", nullable = false)
	private String textValue;

	public I8nText() {
	}

	public I8nTextPK getId() {
		return this.id;
	}

	public void setId(I8nTextPK id) {
		this.id = id;
	}

	public String getTextValue() {
		return this.textValue;
	}

	public void setTextValue(String textValue) {
		this.textValue = textValue;
	}

}